package cn.sylinx.hbatis.ext.starter.pool;

import com.alibaba.druid.pool.DruidDataSource;

public class DruidDataSourceCreator extends AbstractDataSourceCreator<DruidDataSource> {

	@Override
	DruidDataSource createBaseDataSource(String driver, String url, String username, String password, String dbType) {

		DruidDataSource cds = new DruidDataSource();
		cds.setUrl(url);
		cds.setDriverClassName(driver);
		cds.setUsername(username);
		cds.setPassword(password);
		cds.setDbType(dbType);
		return cds;
	}
}
